#include<func.h>
int main()
{
    int shmid;
    shmid=shmget(1000,4096,IPC_CREAT|IPC_EXCL|0600);
    ERROR_CHECK(shmid,-1,"shmget");
    printf("share memoryid is %d",shmid);
    return 0;
}